/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session.TX;

import entity.PhotoEntity;
import java.io.InputStream;
import java.util.ArrayList;
import javax.ejb.Remote;
import javax.faces.model.SelectItem;


/**
 *
 * @author AdminNUS
 */
@Remote

public interface PortalManagementSBRemote {

    public boolean addAlt(Long photoID, String desc);

    public String getPhotoAlt(Long photoID); 

    public String getSinglePhotoUrl(Long photoID);

    public boolean deletePhoto(Long photoID);

    public ArrayList<String> getAllPhotoToString(String uploaderName, String type);

    public ArrayList<PhotoEntity> getPhotoEntityByNameAndType(String uploaderName, String type);

    public ArrayList<SelectItem> getAllPhoto(String uploaderName, String type);

    public PhotoEntity getPhotoEntityByID(Long photoID);

    public boolean insertPhoto(InputStream MBInputStream, String fileName, String filePath, String uploaderName, String type);

    public Integer getLastPhotoNumber();

    public String[] getFileNameAndExtension(String input);

    public String getDateTimeNow(String dateFormat);
}
